import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import toolCategories.ToolCategory

@Composable
fun MainContent(
    modifier: Modifier = Modifier,
    tool: ToolCategory
) {
    Box(
        modifier = modifier.fillMaxSize()
            .background(color = MaterialTheme.colorScheme.background)
            .padding(horizontal = 20.dp, vertical = 15.dp)
    ) {
        tool.Render()
    }
}